<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css-文本</title>
    <style>
        div{
            color: red;
            width: 200px;
            background-color: greenyellow;
            text-align: right; /*left center right*/
            padding-right:20px;
            text-decoration: overline;//
        }
    </style>
</head>
<body>
<div>
    用户名：
</div>
<div>
    密码：
</div>
</body>
</html>